bitkeeper revision 1.1205.1.3 (4215ee82GVkS6-XQcYeidECo27K1Qw)
authormaf46@burn.cl.cam.ac.uk <maf46@burn.cl.cam.ac.uk>
Fri, 18 Feb 2005 13:32:50 +0000 (13:32 +0000)
committermaf46@burn.cl.cam.ac.uk <maf46@burn.cl.cam.ac.uk>
Fri, 18 Feb 2005 13:32:50 +0000 (13:32 +0000)
Added a keybinding for dumping the debugtrace_printf's

xen/common/keyhandler.c

index e51a445389bf027e09757c589054cfa3e35be083..4615588cb6618fe3a99df7976b996af2d06df69e 100644 (file)
@@ -155,6 +155,13 @@ void do_debug_key(unsigned char key, struct xen_regs *regs)
                              bit. */
 }
 
+#ifndef NDEBUG
+void debugtrace_key(unsigned char key)
+{
+    debugtrace_dump();
+}
+#endif
+
 void initialize_keytable(void)
 {
     open_softirq(KEYPRESS_SOFTIRQ, keypress_softirq);
@@ -176,7 +183,9 @@ void initialize_keytable(void)
 
 #ifndef NDEBUG
     register_keyhandler(
-        'o', audit_domains_key,  "audit domains >0 EXPERIMENTAL"); 
+        'o', audit_domains_key,  "audit domains >0 EXPERIMENTAL");
+    register_keyhandler(
+        'T', debugtrace_key, "dump debugtrace");
 #endif
 
 #ifdef PERF_COUNTERS